package saxion.speelveld.spaceengineer.buildings;

import saxion.speelveld.spaceengineer.R;
import saxion.speelveld.spaceengineer.model.ProducingBuilding;
import saxion.speelveld.spaceengineer.model.Resource;
import saxion.speelveld.spaceengineer.model.ResourceType;

public class Mines extends ProducingBuilding
{

	public Mines()
	{
		super(2, 1);
		super.setBuildingName(Mines.this.getClass().getSimpleName());
		super.setBuildingExplanation("The Mines gather resources from rich ground.");
		super.resourceCosts.add(new Resource(ResourceType.MONEY, 200));
		super.resourceCosts.add(new Resource(ResourceType.ELECTRICITY, 10));
		super.resourceCosts.add(new Resource(ResourceType.WATER, 100));
		super.resourceCosts.add(new Resource(ResourceType.GLASS, 40));
		super.resourceCosts.add(new Resource(ResourceType.METAL, 100));

		super.addResourceProduceCost(new Resource(ResourceType.HAPPINESS, 1, false));
		/**
		 * super.setResourcesProduced(ResourceType.HAPPINESS);
		 * 
		 * if (super.getResourcesProduced() == ResourceType.HAPPINESS) { super.setProductioncapacity(-1); }
		 */

		// super.addResourceProduceGain(new Resource(ResourceType.IRONORE, 1, true));
		/**
		 * if (veldje = ironore) { super.setResourcesProduced(ResourceType.IRONORE); super.setProductioncapacity(1); }
		 * 
		 * if (veldje = sand) { super.setResourcesProduced(ResourceType.SAND); super.setProductioncapacity(1); }
		 * 
		 * if (veldje = goldore { super.setResourcesProduced(ResourceType.GOLDORE); super.setProductioncapacity(1); }
		 * etc.. ?
		 **/

		super.resourceImages = new int[2];
		super.resourceImages[0] = R.drawable.mines_0;
		super.resourceImages[1] = R.drawable.mines_1;
		super.setPreviewResourceImageId(R.drawable.mines);
	}

	// @Override
	// public int produceGoods()
	// {
	// return 0;
	// }

}
